@extends('home.inc.common')
@section('title')
	<title>{{$archive->title}} - 视频 - 奇异果聚合</title>
	<meta name="keywords" content="{{$archive->tags()->pluck('name')->implode(',')}}" />
	<meta name="description" content="{{$archive->abstract}}" />
	<link href="{{asset('home_new/css/libs.css')}}" rel="stylesheet" type="text/css" />
	<link href="{{asset('home_new/css/global.css')}}" rel="stylesheet" type="text/css" />
	<link href="{{asset('home_new/css/qyg2016.css')}}" rel="stylesheet" type="text/css" />
	<link href="{{asset('home_new/css/page_ub_detail.css')}}" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="{{asset('home/js/jquery-3.1.0.min.js')}}"></script>
@endsection
@section('content')
	<div class="wrap">
		<div id="main">
			@include('home.inc.video_category')
				<div class="media_content">
					<div class="content_video">
						<div class="video_nav">
							<a href="{{url('/')}}">首页></a>
							<a href="{{url('video')}}">视频></a>
							<span class="nav_curr">
								{{$archive->title}}
							</span>
						</div>
						<div class="video_post">
							@if(!$review)
								<h2 style="color:red;">该篇内容尚未通过审核，现属于预览状态！</h2>
							@endif
							<div class="post_player clear">
								<div class="post_video_left">
									{!! $archive->detail->link !!}
								</div>
								<div class="post_video_right">
									<div class="post_video_list_title">最新视频</div>
									<ul class="post_video_list">
										@if($new)
											@foreach($new as $v)
										<li>
											<div class="post_video_list_image"><a href="{{route('video.show', $v->id)}}"><img src="{{route('image', [trim($v->cover, '/'), '124x69'])}}" alt=""></a></div>
											<p class="post_video_list_intro"><a href="{{route('video.show', $v->id)}}">{{$v->title}}</a></p>
										</li>
											@endforeach
										@endif
									</ul>
								</div>
							</div>
							<div class="video_share">
								<div class="video_share_content">
									<span class="video_share_padding">
										<span href="#SOHUCS" id="changyan_count_unit"></span>
										<script type="text/javascript" src="http://assets.changyan.sohu.com/upload/plugins/plugins.count.js">
										</script>
									<span>条评论</span>
									<span class="video_share_padding">|</span>
									<span class="video_share_padding">{{$archive->visit_count}}</span><span>次播放</span>
									
									<div class="bdsharebuttonbox video_share_btn"><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a></div>
								<script>
									window._bd_share_config = {
										common : {
											bdText : '{{$archive->title}}',
											bdDesc : '{{$archive->abstract}}',
											bdUrl : 'http://www.qiyiguo.tv/video/'+'{{$archive->id}}'+'.html',
											bdPic : 'http://www.qiyiguo.tv'+'{{$archive->cover}}/raw.jpg'
										},
										share : [{
											"bdSize" : 24
										}]
									}
									with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
								</script>
								<span class="video_share_word">分享到</span>
								</div>
								
							</div>
						</div>
					</div>
					
					<div class="content_more">
						<div class="post_description">
							<p class="des_title">
								视频简介
							</p>
							<p class="des_content">{!! $archive->detail->content !!}</p>
						</div>
						<div class="more_side clear">
							<div class="side_left">
								<div class="item">
									<a href="http://weibo.com/u/5897732591" target="_blank" rel="nofollow"><img src="{{asset('home_new/images/article_foot_qrcode.jpg')}}" /></a>

								</div>
								<div class="cmWrap">
									@include('inc.comment')
								</div>
							</div>
							<div class="side_right">
								<h3>
									标签
								</h3>
								<div class="right_tag">
									@foreach($archive->tags()->get() as $tag)
										{{--<dt style="border: solid 1px #{{$tag->background_color or '006633'}};">--}}
											<a href="{{$tag->url}}">{{$tag->name}}</a>
										{{--</dt>--}}
									@endforeach
								</div>
								<h3 style="height:54px; line-height:54px;">
									推荐视频
								</h3>
								<ul class="right_recommend">
									@if($recommend)
										@foreach($recommend as $v)
									<li>
										<a href="{{route('video.show', $v->id)}}">
											<img src="{{route('image', [trim($v->cover, '/'), '300x150'])}}"
											alt="{{$v->title}}" />
											<span class="recommend_cover">
											</span>
											<span class="recommend_title">
												{{$v->title}}
											</span>
										</a>
									</li>
								@endforeach
										@endif
								</ul>
								<h3 style="height:30px; line-height:21px;">
									相关推荐
								</h3>
								<ul class="right_relation">
									@foreach($similar as $archive)
									<li>
										<a href="{{ route($archive->type->name.'.show', [$archive->id]) }}">
											{{ $archive->title }}
										</a>
									</li>
									@endforeach
								</ul>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>

@endsection